package com.linkage.lcims.base.po.business;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
@SuppressWarnings("serial")
public class BdNasTypePK implements Serializable {

    /** identifier field */
    private String nastype;

    /** identifier field */
    private Integer accesstype;

    /** full constructor */
    public BdNasTypePK(String nastype, Integer accesstype) {
        this.nastype = nastype;
        this.accesstype = accesstype;
    }

    /** default constructor */
    public BdNasTypePK() {
    }

    public String getNastype() {
		return nastype;
	}

	public void setNastype(String nastype) {
		this.nastype = nastype;
	}

	public Integer getAccesstype() {
		return accesstype;
	}

	public void setAccesstype(Integer accesstype) {
		this.accesstype = accesstype;
	}

	public String toString() {
        return new ToStringBuilder(this)
            .append("nastype", getNastype())
            .append("accesstype", getAccesstype())
            .toString();
    }

    public boolean equals(Object other) {
        if ( (this == other ) ) return true;
        if ( !(other instanceof BdNasTypePK) ) return false;
        BdNasTypePK castOther = (BdNasTypePK) other;
        return new EqualsBuilder()
            .append(this.getNastype(), castOther.getNastype())
            .append(this.getAccesstype(), castOther.getAccesstype())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getNastype())
            .append(getAccesstype())
            .toHashCode();
    }

}
